function Change_pay_Template(pay_template){
    var ii = layer.load(3, {shade:[0.1,'#fff']});
    $.ajax({
        type : "POST",
        url : "Ajax.php",
        data : {
            act:'Change_pay_Template',
            pay_template:pay_template
        },
        dataType : 'json',
        timeout:10000,
        success : function(data){
            layer.close(ii);
            if(data.code == 200){
                 layer.msg(data.msg, {
                    icon: 1,
                    time: 2000
                }, function() {
                    location.reload();
                });
            }else{
                layer.msg(data.msg, {
                    icon: 2,
                    time: 3000
                });
            }
        },
        error: function(data) {
		     layer.close(ii);
			layer.msg('服务器错误');
			return false;
		}
    });
}

function pay_set(){
    var INPUTFREE = $("#INPUTFREE").val(); 
    var wxpb_llq  = $("#wxpb_llq").val(); 
    var user_vips = $("#user_vips").val(); 
    var outtime = $("#outtime").val(); 
    var ii = layer.load(3, {shade:[0.1,'#fff']});
     $.ajax({
         type : "POST",
         url : "Ajax.php",
         data : {
            act:'pay_set',
            INPUTFREE:INPUTFREE,
            wxpb_llq:wxpb_llq,
            user_vips:user_vips,
            outtime:outtime
         },
        dataType : 'json',
        timeout:10000,
        success : function(data){
            layer.close(ii);
            if(data.code == 200){
                 layer.msg(data.msg, {
                    icon: 1,
                    time: 2000
                }, function() {
                    location.reload();
                });
            }else{
                layer.msg(data.msg, {
                    icon: 2,
                    time: 3000
                });
            }
        },
        error: function(data) {
		     layer.close(ii);
			layer.msg('服务器错误');
			return false;
		}
     });
    
}